﻿using SqlSugar;
using SqlSugarWebApi.Entity.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlSugarWebApi.DataContext.Services
{
   public interface IUserService
    {
        /// <summary>
        /// 查询获取所有的 admin 用户
        /// </summary>
        /// <returns></returns>
        Task<List<Admin>> GetAllAdmins();

        /// <summary>
        /// 通过用户名获取指定用户
        /// </summary>
        /// <param name="adminName"></param>
        /// <returns></returns>
        Task<Admin> GetAdminByName(string adminName);

        /// <summary>
        /// 添加 
        /// </summary>
        /// <param name="admin"></param>
        /// <returns></returns>
        Task<int> InsertEntity(Admin admin);
    }
}
